home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_vol_treasurescorp.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  64 lines

  1. # Jones 3D Cog Script
  2. #
  3. # VOL_Crate_Puzzle.cog
  4. #
  5. # This elevator will come down to frame one, sleep, then return to frame 0.
  6. #
  7. # [CM]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14. #...................MESSAGES...............    
  15.     message  startup
  16.     message  taken
  17.     
  18. #...................ACTORS...............    
  19.     thing    scorpian         
  20.     
  21.  
  22. #...................PROPS...............    
  23.     thing    treasure            
  24.     
  25.  
  26. #...................ACTOR MARKS...............    
  27.     thing    scorp_mv0            
  28.             
  29.  
  30. #...................VARIABLES...............
  31.     flex    scorpsize                    local    
  32.  
  33. end
  34.  
  35. # ========================================================================================
  36. code
  37.  
  38. startup:
  39.  
  40.     AISetCutSceneMode(scorpian);
  41.     scorpsize=GetThingMoveSize(scorpian);
  42.  
  43. return;
  44.  
  45. # ========================================================================================
  46. taken:
  47.  
  48.         
  49.     If (GetSenderRef() == treasure) 
  50.         {
  51.         SetThingMoveSize(scorpian, 0.01);
  52.         AISetLookThing(scorpian, scorp_mv0);
  53.         AISetMoveSpeed(scorpian, 1.2);
  54.         AISetMoveThing(scorpian, scorp_mv0, 1);
  55.         SetThingMoveSize(scorpian, scorpsize);
  56.         AIClearCutSceneMode(scorpian);
  57.         }
  58. return;
  59.  
  60. # ========================================================================================
  61. end
  62.  
  63.  
  64.